<!DOCTYPE html>
<html><head>
	    <meta charset="utf-8">
    <title>权限分配</title>

    <meta name="description" content="Dashboard">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <!--Basic Styles-->
    <link href="__PUBLIC__/bootstrap.css" rel="stylesheet">
    <link href="__PUBLIC__/font-awesome.css" rel="stylesheet">
    <link href="__PUBLIC__/weather-icons.css" rel="stylesheet">

    <!--Beyond styles-->
    <link id="beyond-link" href="__PUBLIC__/beyond.css" rel="stylesheet" type="text/css">
    <link href="__PUBLIC__/demo.css" rel="stylesheet">
    <link href="__PUBLIC__/typicons.css" rel="stylesheet">
    <link href="__PUBLIC__/animate.css" rel="stylesheet">
    <!-- <link href="__CSS__/bootstrap.css" rel="stylesheet"> -->
    <!-- <link href="__CSS__/bootstrap.min.css" rel="stylesheet"> -->
</head>
<body>
	<!-- 头部 -->
	<{include file="common/top" /}>
	<!-- /头部 -->
	
	<div class="main-container container-fluid">
		<div class="page-container">
			<!-- Page Sidebar -->
            <{include file="common/left" /}>
            <!-- /Page Sidebar -->
            <!-- Page Content -->
            <div class="page-content">
                <!-- Page Breadcrumb -->
                <div class="page-breadcrumbs">
                    <ul class="breadcrumb">
                                        <li>
                        <a href="<{:url('index/index')}>">论坛系统</a>
                    </li>
                                        <li class="active">分配权限</li>
                                        </ul>
                </div>
                <!-- /Page Breadcrumb -->

                <!-- Page Body -->
                <div class="page-body">
                    
<button type="button" tooltip="添加权限" class="btn btn-sm btn-azure btn-addon" onClick="javascript:window.location.href = '{:url('add')}'"> <i class="fa fa-plus"></i> 
</button>
<div class="row">
    <div class="col-lg-12 col-sm-12 col-xs-12">
        <div class="widget">
            <div class="widget-body">
                <div class="flip-scroll">
                    <form action="<{:url('urole/saveauth')}>" method="post">
                        <table class="table table-bordered table-hover">
                            <thead class="">
                                <tr>
                                    <th width="100%">
                                        <h4>给 <span style="font-size:20px;"><{$role.role_name}></span> 分配权限</h4>
                                    </th>
                                </tr>
                                <{volist name="auths" id="v"}>
                                <tr>
                                    <td>
                                        <label>
                                        <input class="checkbox-slider colored-darkorange" name="auth[]" value="<{$v.id}>" type="checkbox" 
                                        <{if condition="$arr['auth'] eq false"}>
                                        <{elseif condition="in_array($v['node'], $arr['auth'])"}>checked="checked"
                                        <{else /}>
                                        <{/if}>
                                        >
                                            <span class="text"><{$v.node}></span>
                                        </label>&nbsp;&nbsp;&nbsp;
                                        
                                    </td>
                                </tr>
                                <{/volist}>
                            </thead>
                        </table>
                        <input type="hidden" name="id" value="<{$role.id}>">
                        <div><input class="btn btn-primary btn-sm shiny" style="margin-left:20px; margin-top:10px;" type="submit" value="保存" ></div>
                    </form>
                </div>
                <div>
                	                </div>
            </div>
        </div>
    </div>
</div>

                </div>
                <!-- /Page Body -->
            </div>
            <!-- /Page Content -->
		</div>	
	</div>

	    <!--Basic Scripts-->
    <script src="__PUBLIC__/jquery_002.js"></script>
    <script src="__PUBLIC__/bootstrap.js"></script>
    <script src="__PUBLIC__/jquery.js"></script>
    <!--Beyond Scripts-->
    <script src="__PUBLIC__/beyond.js"></script>
    


</body></html>